import request from '@/utils/request'

// 获取产品列表
export function listInfo(query) {
    return request({
        url: '/system/productInfoController/getProductInfoList',
        method: 'get',
        params: query
    })
}
// 新增产品信息
export function addInfo(data) {
    return request({
        url: '/system/productInfoController/save',
        method: 'post',
        data: data
    })
}

// 删除产品信息
export function delInfo(query) {
    return request({
        url: '/system/productInfoController/delete',
        method: 'get',
        params: query
    })
}


// 根据系统当前用户获取省市列表
export function getProductCityList(query) {
    return request({
        url: '/system/sysCityInfoController/getCityListByUser',
        method: 'get',
        params: query
    })
}

// 获取省市区
export function exportCityList(query) {
    return request({
        url: '/system/sysCityInfoController/getCityList',
        method: 'get',
        params: query
    })
}
// 获取资方类型
export function exportAssetsType() {
    return request({
        url: '/system/assetsTypeInfoController/getAssetsTypeInfoList',
        method: 'get'
    })
}
// 获取资方信息
export function exportAssetsInfo(query) {
    return request({
        url: '/system/assetsInfoController/getAssetsInfoList',
        method: 'get',
        params: query
    })
}
// 获取产品详情
export function getProTable(query) {
    return request({
        url: '/system/productInfoController/getProductInfo',
        method: 'get',
        params: query
    })
}
